﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserRegister.aspx.cs" Inherits="WXYW.UserRegister" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link href="Style/Main.css" rel="stylesheet" type="text/css" />
    <title>神州数码网络（北京）有限公司客户服务系统</title>
    <style type="text/css" media="screen">
        #WXYWLogin
        {
            width: 100%;
            text-align: center;
        }
        #WXYWLogin div
        {
            text-align: left;
            margin-left: 25px;
            margin-right: 10px;
            padding: 2px;
        }
        table
        {
            border: none;
        }
        td
        {
            padding: 2px; /*background-color: #f5f5f5;*/
            border: none;
            word-spacing: normal;
        }
        div.round-light-button
        {
            line-height: 17px;
            padding-right: 9px;
            margin: 0;
            float: left;
        }
        .round-light-button
        {
            background: url(image/button_lightgrey_right.gif) no-repeat 2px right;
        }
        img
        {
            border: 0;
            vertical-align: middle;
        }
    </style>
</head>
<body style="background-color: #6b8cc1">
    <form id="form1" runat="server">
    <table class="Header" cellpadding="0px" cellspacing="0px">
        <tr style="padding: 0px; margin: 0px; border: 0px;">
            <td style="background-image: url('image/logobg.jpg'); background-repeat: repeat;
                width: 20%; padding: 0px;">
                <img src="image/logoDCN.jpg" alt="" style="padding: 0px; margin: 0px" />
            </td>
            <td style="background-image: url('image/logobg.jpg'); background-repeat: repeat;
                width: 60%; text-align: center; font-size: 18pt; font-weight: bold; padding: 0px;">
                神州数码网络（北京）有限公司客户服务系统
            </td>
            <td style="background-image: url('image/rightlogo.jpg'); background-repeat: repeat;
                width: 20%; padding: 0px;">
            </td>
        </tr>
    </table>
    <table cellpadding="0px" cellspacing="0px" style="width: 100%; background-image: url('image/01-1_r2.jpg');
        height: 430px; background-repeat: repeat-x;">
        <tr>
            <td style="background-image: url('image/dl.jpg'); height: 430px; background-repeat: no-repeat;">
            </td>
            <%-- <td style="background-image:url('image/01-1_r2.jpg'); height:430px; background-repeat:repeat-x; width:10%;"></td>--%>
        </tr>
    </table>
    <div style="margin: -30px 0 0 -40px; top: 18%; left: 37%; position: absolute;">
        <table>
            <tr style="height: 25px;">
                <td colspan="4" style="border-bottom-style: solid; border-bottom-width: 1px;">
                    <b style="margin-left: 150px;">用户注册</b>
                </td>
            </tr>
            <tr style="height: 25px">
                <td style="width:90px">
                    用户 ID:
                </td>
                <td>
                    <asp:TextBox ID="customerIDTxtBox" runat="server" Width="200px"></asp:TextBox><span style="color:Red">*</span>
                </td>
                <td style="color: Red; width:200px;">
                    用户ID由字符、数字和下划线组成
                </td>                
                <td>
                    <asp:RequiredFieldValidator ID="IDRequiredValidator" runat="server" ErrorMessage="" SetFocusOnError="true"
                        Text="用户ID没有输入" ControlToValidate="customerIDTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr style="height: 25px">
                <td>
                    用户密码:
                </td>
                <td>
                    <asp:TextBox ID="passwordTxtBox" runat="server" Width="200px"></asp:TextBox><span style="color:Red">*</span>
                </td>
                <td style="color: Red;">
                    用户密码至少需要六位
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="PasswordRequiredFieldValidator" runat="server" ErrorMessage="" Display="Dynamic"
                        Text="用户密码没有输入" ControlToValidate="passwordTxtBox" ValidationGroup="NewUserValidation" SetFocusOnError="true"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="" ValidationGroup="NewUserValidation"
                        Text="密码长度没有达到6位" ValidationExpression="^\w{6,}$" ControlToValidate="passwordTxtBox" SetFocusOnError="true"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr style="height: 25px">
                <td>
                    重复用户密码:
                </td>
                <td>
                    <asp:TextBox ID="RepeatPasswordTextBox" runat="server" Width="200px"></asp:TextBox><span style="color:Red">*</span>
                </td>
                <td style="color: Red;">
                    再次输入您的密码
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="" Display="Dynamic"
                        Text="请再次输入您的密码确保正确" ControlToValidate="RepeatPasswordTextBox" ValidationGroup="NewUserValidation" SetFocusOnError="true"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" Text="您两次输入的密码不符" ErrorMessage="您两次输入的密码不符" ControlToValidate="RepeatPasswordTextBox"
                     ControlToCompare="passwordTxtBox" SetFocusOnError="true" ></asp:CompareValidator>   
                </td>
            </tr>
            <tr style="height: 25px">
                <td>
                    公司全称:
                </td>
                <td>
                    <asp:TextBox ID="customerNameTxtBox" runat="server" Width="200px"></asp:TextBox><span style="color:Red">*</span>
                </td>
                <td style="color: Red;">
                    请填写您公司的详细名称
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="NameRequiredFieldValidator" runat="server" ErrorMessage=""
                        Text="公司全称没有输入" ControlToValidate="customerNameTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr style="height: 25px">
                <td>
                    公司简称:
                </td>
                <td>
                    <asp:TextBox ID="companyNameTxtBox" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td style="color: Red;">
                    请填写您公司简称
                </td>
                <td>
                </td>
            </tr>
            <tr style="height: 25px">
                <td>
                    联系人:
                </td>
                <td>
                    <asp:TextBox ID="contactTxtBox" runat="server" Width="200px"></asp:TextBox><span style="color:Red">*</span>
                </td>
                <td style="color: Red;">
                    请填写联系人姓名
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="ContactRequiredFieldValidator" runat="server" ErrorMessage=""
                        Text="联系人没有输入" ControlToValidate="contactTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr style="height: 25px">
                <td>
                    联系电话:
                </td>
                <td>
                    <asp:TextBox ID="phoneTxtBox" runat="server" Width="200px"></asp:TextBox><span style="color:Red">*</span>
                </td>
                <td style="color: Red;">
                    请填写联系固定电话号码
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="PhoneRequiredFieldValidator" runat="server" ErrorMessage=""
                        Text="联系电话没有输入" ControlToValidate="phoneTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr style="height: 25px">
                <td>
                    联系手机:
                </td>
                <td>
                    <asp:TextBox ID="mobilePhoneTxtBox" runat="server" Width="200px"></asp:TextBox><span style="color:Red">*</span>
                </td>
                <td style="color: Red;">
                    请填写联系手机号码
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="MobilePhoneRequiredFieldValidator" runat="server" Display="Dynamic"
                        ErrorMessage="" Text="手机号码没有输入" ControlToValidate="mobilePhoneTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="MobilePhoneRegularExpressionValidator" runat="server" ValidationGroup="NewUserValidation"
                        ErrorMessage="" Text="手机号码格式不对" ValidationExpression="^\w{11,}$" ControlToValidate="mobilePhoneTxtBox"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr style="height: 25px">
                <td>
                    联系传真:
                </td>
                <td>
                    <asp:TextBox ID="faxTxtBox" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td style="color: Red;">
                    请填写联系传真
                </td>
                <td>
                </td>
            </tr>
            <tr style="height: 25px">
                <td>
                    电子邮件:
                </td>
                <td>
                    <asp:TextBox ID="emailTxtBox" runat="server" Width="200px"></asp:TextBox><span style="color:Red">*</span>
                </td>
                <td style="color: Red;">
                    请填写电子邮件地址
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="EmailRequiredFieldValidator" runat="server" ErrorMessage="" Display="Dynamic"
                        Text="电子邮件没有输入" ControlToValidate="emailTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="EmailRegularExpressionValidator" runat="server" ValidationGroup="NewUserValidation"
                        ErrorMessage="" Text="邮件地址格式不正确" ControlToValidate="emailTxtBox"
                        SetFocusOnError="true" ValidationExpression="^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$" ></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr style="height: 25px">
                <td>
                    通讯地址:
                </td>
                <td>
                    <asp:ScriptManager ID="MyScriptManager" runat="server" />
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:DropDownList ID="ddlProvince" runat="server" AutoPostBack="true" 
                            OnSelectedIndexChanged="provinceChanged">
                            <asp:ListItem Text="北京" Value="北京">北京</asp:ListItem>
                            <asp:ListItem Text="上海" Value="上海">上海</asp:ListItem>
                            <asp:ListItem Text="黑龙江" Value="黑龙江">黑龙江</asp:ListItem>
                            <asp:ListItem Text="吉林" Value="吉林">吉林</asp:ListItem>
                            <asp:ListItem Text="辽宁" Value="辽宁">辽宁</asp:ListItem>
                            <asp:ListItem Text="天津" Value="天津">天津</asp:ListItem>
                            <asp:ListItem Text="安徽" Value="安徽">安徽</asp:ListItem>
                            <asp:ListItem Text="江苏" Value="江苏">江苏</asp:ListItem>
                            <asp:ListItem Text="浙江" Value="浙江">浙江</asp:ListItem>
                            <asp:ListItem Text="陕西" Value="陕西">陕西</asp:ListItem>
                            <asp:ListItem Text="湖北" Value="湖北">湖北</asp:ListItem>
                            <asp:ListItem Text="广东" Value="广东">广东</asp:ListItem>
                            <asp:ListItem Text="湖南" Value="湖南">湖南</asp:ListItem>
                            <asp:ListItem Text="甘肃" Value="甘肃">甘肃</asp:ListItem>
                            <asp:ListItem Text="四川" Value="四川">四川</asp:ListItem>
                            <asp:ListItem Text="山东" Value="山东">山东</asp:ListItem>
                            <asp:ListItem Text="福建" Value="福建">福建</asp:ListItem>
                            <asp:ListItem Text="河南" Value="河南">河南</asp:ListItem>
                            <asp:ListItem Text="重庆" Value="重庆">重庆</asp:ListItem>
                            <asp:ListItem Text="云南" Value="云南">云南</asp:ListItem>
                            <asp:ListItem Text="河北" Value="河北">河北</asp:ListItem>
                            <asp:ListItem Text="江西" Value="江西">江西</asp:ListItem>
                            <asp:ListItem Text="山西" Value="山西">山西</asp:ListItem>
                            <asp:ListItem Text="贵州" Value="贵州">贵州</asp:ListItem>
                            <asp:ListItem Text="广西" Value="广西">广西</asp:ListItem>
                            <asp:ListItem Text="内蒙古" Value="内蒙古">内蒙古</asp:ListItem>
                            <asp:ListItem Text="宁夏" Value="宁夏">宁夏</asp:ListItem>
                            <asp:ListItem Text="青海" Value="青海">青海</asp:ListItem>
                            <asp:ListItem Text="新疆" Value="新疆">新疆</asp:ListItem>
                            <asp:ListItem Text="海南" Value="海南">海南</asp:ListItem>
                            <asp:ListItem Text="西藏" Value="西藏">西藏</asp:ListItem>
                            <asp:ListItem Text="香港" Value="香港">香港</asp:ListItem>
                            <asp:ListItem Text="澳门" Value="澳门">澳门</asp:ListItem>
                            <asp:ListItem Text="台湾" Value="台湾">台湾</asp:ListItem>
                        </asp:DropDownList>
                    
                        <asp:DropDownList ID="ddlCity" runat="server" Visible="false">
                        </asp:DropDownList>
                    </ContentTemplate>
                    
                    <Triggers> 
                        <asp:AsyncPostBackTrigger ControlID="ddlProvince" EventName="SelectedIndexChanged" /> 
                    </Triggers> 
                    </asp:UpdatePanel>
                </td>
                <td style="color: Red;">
                    
                </td>
                <td>
                    
                </td>
            </tr>
            <tr style="height: 25px">
                <td>
                    
                </td>
                <td>
                    <asp:TextBox ID="addressTxtBox" runat="server" Width="230px"></asp:TextBox><span style="color:Red">*</span>
                </td>
                <td style="color: Red;">
                    请填写通讯地址
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage=""
                        Text="通讯地址没有输入" ControlToValidate="addressTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr style="text-align: center">
                <td colspan="3">
                    <asp:Button ID="SaveButton" runat="server" Text="确定" OnClick="SaveButton_Click" ValidationGroup="NewUserValidation" Width="80px" />
                </td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td colspan="6">
                    <asp:Label ID="promptLbl" runat="server" ForeColor="Red"></asp:Label>
                    <asp:LinkButton ID="BackLnkBtn" runat="server" Text="返回登陆页" PostBackUrl="~/Default.aspx" CausesValidation="false"></asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
